package com.sjn.camera.cameraFrame;


public class SensorFactory extends AbstractFactory{
    @Override
    public String getLen(int i) {
        return "传感器工厂无镜头配件";
    }

    @Override
    public String getSensor(int i) {
        if (i==1){
            return new CCDSensor().getSensor();
        }
        else if (i==2){
            return new CMOSSensor().getSensor();
        }
        return "获取传感器失败";
    }
}
